If you want a single button to be able to respond to a message, edit the button's script. If you want an entire card to respond to the message, edit the card's script. And so on through backgrounds, stacks, and the stack script of the Home stack (the most general script of all).